package bean;

public class rectangle {
	private double i ,j;

	public rectangle() {
		super();
	}

	public rectangle(double i, double j) {
		super();
		this.i = i;
		this.j = j;
	}

	public double getI() {
		return i;
	}

	public void setI(double i) {
		this.i = i;
	}

	public double getJ() {
		return j;
	}

	public void setJ(double j) {
		this.j = j;
	}
	public double perimeter()
	{
		return (i+j)*2;
	}
	public double area()
	{
		return i*j;
	}

	public String toString() {
		return "rectangle [i=" + i + ", j=" + j + ", perimeter()="
				+ perimeter() + ", area()=" + area() + "]";
	}

} 
